import { defineStore } from '@/config/pinia/index.ts';
export const usePermissionStore = defineStore({
	id      : 'permissionStore',
	state   : () => {
		return {
			permissionList : [] as Array<string>,
			roleList       : [] as Array<string>
		};
	},
	getters : {
		getPermissionList : (state: any) => state['permissionList'],
		getRoleList       : (state: any) => state['roleList']
	},
	actions : {
		setPermissionList(permission: Array<string>) {
			this.permissionList = permission;
		},
		setRoleList(permission: Array<string>) {
			this.roleList = permission;
		}
	}
});